package com.codes.dao;

import com.codes.model.OrderInfo;

import java.util.List;
import java.util.Map;

public interface OrderInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(OrderInfo record);

    int insertSelective(OrderInfo record);

    int  insertByMap( Map<String,Object> map);

    OrderInfo selectByPrimaryKey(Integer id);


    int updateByPrimaryKeySelective(OrderInfo record);

    int updateByPrimaryKey(OrderInfo record);

    List<Map<String,Object>> selectByOrderId(Map<String,Object> map);

    //deleteByWrokOrderId
    int deleteByWrokOrderId(Integer wrokOrderId );

    // 根据 工单id 获取物流 id  再删除 对应的 物流 详情
    int deleteByLogisticsId(Integer wrokOrderId);

}